package com.szms.mobile.repository.model;

import com.szms.mobile.annotations.Column;
import com.szms.mobile.common.LocalDatetimeConverter;
import com.szms.mobile.enums.ColumnType;

import java.time.LocalDateTime;

public class BaseModel {
    public static final String IdColumn = "_id";


    @Column(value = IdColumn,columnType = ColumnType.Integer,primaryKey = true,autoIncrement = true)
    private Integer id;

    @Column(value = "created_date",converterType = LocalDatetimeConverter.class)
    private LocalDateTime createdDate;

    @Column(value = "modified_date",converterType = LocalDatetimeConverter.class)
    private LocalDateTime modifiedDate;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public LocalDateTime getCreatedDate() {
        return createdDate;
    }

    public void setCreatedDate(LocalDateTime createdDate) {
        this.createdDate = createdDate;
    }

    public LocalDateTime getModifiedDate() {
        return modifiedDate;
    }

    public void setModifiedDate(LocalDateTime modifiedDate) {
        this.modifiedDate = modifiedDate;
    }
}
